#include<stdio.h>
#include<sys/types.h>
#include<sys/stat.h>
#include<fcntl.h>

int main()
{
	close(1);
	int id = open("mes",O_RDWR|O_CREAT);
	printf("id=%d",id);
	write(id,"sdfasdf",7);
	return 0;
}
